#ifndef PARAMGROUPLIMITSVIEW_H
#define PARAMGROUPLIMITSVIEW_H

#include <QWidget>
#include <QSqlTableModel>
#include <QTextCodec>
#include "Settings/Model/ParamGroupDao.h"


namespace Ui{
 class ParamGroupLimits;
}


class ParamGroupLimitsView : public QWidget
{
    Q_OBJECT
public:
     explicit ParamGroupLimitsView(bool isNewGroup, int selectGroup,  QSqlTableModel *model, QWidget *parent = 0);
    ~ParamGroupLimitsView();
signals:
    void updateParamReferView(int selectRow); //更新界面显示
public slots:



private slots:
    void on_Btn_default_clicked();
    void on_Btn_save_clicked();

private:
    void initUi();
    void initTable();
    void closeEvent(QCloseEvent *event);

    void readParamGroupInfo(ParamGroupDao *dao);
    void setParamGroupInfo();

private:
    Ui::ParamGroupLimits *ui;
    QTextCodec *tc;
    QSqlTableModel *pModel;
    bool m_isNewGroup;
    int  m_selectGroup;
    ParamGroupDao *paramGroupDao;
};

#endif // PARAMGROUPLIMITSVIEW_H
